package com.xt.LibaryDeskManager.dto;

/**
 * @author 童归权
 * @version 1.0 2021/2/20
 */
public class SelectSeatDto {
    private Integer selectId;
    private String seatNo;
    private String studentNo;
    private String statueName;
    private Integer statue;
    private String begin1;
    private Integer begin2;
    private String begin2Name;

    public String getBegin2Name() {
        return begin2Name;
    }

    public void setBegin2Name(String begin2Name) {
        this.begin2Name = begin2Name;
    }

    public String getBegin1() {
        return begin1;
    }

    public void setBegin1(String begin1) {
        this.begin1 = begin1;
    }

    public Integer getBegin2() {
        return begin2;
    }

    public void setBegin2(Integer begin2) {
        this.begin2 = begin2;
        switch (begin2){
            case 1:
                begin2Name="上午";
                break;
            case 2:
                begin2Name="下午";
                break;
        }
    }

    @Override
    public String toString() {
        return "SelectSeatDto{" +
                "selectId=" + selectId +
                ", seatNo='" + seatNo + '\'' +
                ", studentNo='" + studentNo + '\'' +
                ", statue=" + statue +
                '}';
    }

    public Integer getSelectId() {
        return selectId;
    }

    public void setSelectId(Integer selectId) {
        this.selectId = selectId;
    }

    public String getSeatNo() {
        return seatNo;
    }
    public void setSeatNo(String seatNo) {
        this.seatNo = seatNo;
    }

    public String getStudentNo() {
        return studentNo;
    }

    public void setStudentNo(String studentNo) {
        this.studentNo = studentNo;
    }

    public Integer getStatue() {
        return statue;
    }

    public void setStatue(Integer statue) {
        this.statue = statue;
        switch (statue){
            case 1:
                statueName="未开始";
                break;
            case 2:
                statueName="正在使用";
                break;
            case 3:
                statueName="结束";
                break;
            case 4:
                statueName="结束(手动取消)";
                break;
        }
    }

    public SelectSeatDto() {
    }

    public SelectSeatDto(Integer selectId, String seatNo, String studentNo, Integer statue, String begin1, Integer begin2) {
        this.selectId = selectId;
        this.seatNo = seatNo;
        this.studentNo = studentNo;
        this.statue = statue;
        this.begin1 = begin1;
        this.begin2 = begin2;
    }

    public String getStatueName() {
        return statueName;
    }

    public void setStatueName(String statueName) {
        this.statueName = statueName;
    }
}
